<div style="padding:10px 20px 20px 20px;margin:0px 0;">
	<div style="float:left;margin:10px 0px 10px 0;width:100%;">
	<form th:id="${formID}" action="#"  method="post" enctype="multipart/form-data">
		<div style="margin:0 20px;float:left;">
		<input  id="equmtName" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.equmtName}+'  :'" label="设备名称"  name="equmtName"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtIp" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.equmtIp}+'  :'" label="设备IP"  name="equmtIp"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="orgId" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.orgId}+'  :'" label="机构id"  name="orgId"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="fixCycle" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.fixCycle}+'  :'" label="维护周期(月)"  name="fixCycle"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtStatue" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.equmtStatue}+'  :'" label="设备状态"  name="equmtStatue"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equpicPath" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.equpicPath}+'  :'" label="设备照片"  name="equpicPath"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtOverload" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.equmtOverload}+'  :'" label="超载重量"  name="equmtOverload"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtDiva" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.equmtDiva}+'  :'" label="分度值"  name="equmtDiva"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtDivb" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.equmtDivb}+'  :'" label="跟踪"  name="equmtDivb"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtDivc" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.equmtDivc}+'  :'" label="通信"  name="equmtDivc"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtDivd" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.equmtDivd}+'  :'" label="传感器"  name="equmtDivd"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtDive" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.equmtDive}+'  :'" label="波特率"  name="equmtDive"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtLon" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.equmtLon}+'  :'" label="经度"  name="equmtLon"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="equmtLat" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.equmtLat}+'  :'" label="纬度"  name="equmtLat"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="takecareStdate" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.takecareStdate}+'  :'" label="安装时间"  name="takecareStdate"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;">
		<input  id="takecareCudate" class="easyui-textbox wd50" type="text" 
					th:label="#{equmtInfo.takecareCudate}+'  :'" label="最新维护时间"  name="takecareCudate"   />
			<br style="clear:both;">
		</div>
		<div style="margin:0 20px;float:left;clear:right;">
			<a th:href="'javascript:search(\''+${formID}+'\')'" class="easyui-linkbutton" iconCls="icon-search">查询</a>
		</div>
	</form>
	</div>
	<div style="float:left;margin-bottom:1px;width:100%;">
	<div style="float:left;">
		<a th:href="'javascript:batchdel(\''+${formID}+'\')'" class="easyui-linkbutton">批量删除</a>
		<input th:id="'show'+${formID}" type="hidden" th:value="@{equmt/equmtInfo/queryForEqumtInfoDetail}" />
		<input th:id="'edit'+${formID}" type="hidden" th:value="@{equmt/equmtInfo/addEqumtInfo}" /> 
		<input th:id="'del'+${formID}" type="hidden" th:value="@{equmt/equmtInfo/deleteByEqumtInfoId}" />
		<input th:id="'mid'+${formID}" type="hidden" value="equmtInfoId" />
		<input th:id="'batchdel'+${formID}" type="hidden" th:value="@{equmt/equmtInfo/deleteByEqumtInfoIdBatch}" /> 
	</div>
	<div style="margin-left:10px;float:right;">
		<a th:id="'imp'+${formID}"  href="#" class="easyui-linkbutton" iconCls="" th:onclick="'javascript:importExcelMode(\''+${formID}+'\')'">导入</a>&nbsp;
		<a href="#" class="easyui-linkbutton" iconCls="" th:onclick="'javascript:downloadExcelMode(\''+@{/UploadFiles/Fj/AqglHseAqjc.xlsx}+'\')'">下载模板</a> &nbsp;
		<a href="#" class="easyui-linkbutton" iconCls="" onclick="exportExcelMode(\''+${formID}+'\')'">导出</a>
		
	</div>
	<form th:id="'impForm'+${formID}" action="#"  method="post" enctype="multipart/form-data"> 
		<div style="margin-left:10px;float:right;">
			<input class="easyui-filebox"
			data-options="label:'导入文件:',prompt:'请选择一个Excel文件',buttonText:'选择文件',
			accept:'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel'"
			th:id="'file'+${formID}"  name="file" style="width:300px;">
		</div>
	</form>
	</div>

	<table  th:id="'datagrid'+${formID}" class="easyui-datagrid" title="设备信息表" style="width:100%;"
			data-options="url:'equmt/equmtInfo/queryForEqumtInfoListDG',
			method:'get',rownumbers:true, nowrap: false,singleSelect:false,autoRowHeight: true,
			fitColumns: true,striped:true,idField:'menuInfoId',loadMsg: '正在加载...',pagination:true,pageSize:10">
		<thead data-options="frozen:true">
			<tr>
				<th data-options="field:'ck',checkbox:true" ></th>
				<th data-options="field:'equmtName',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.equmtName}">设备名称</span></th>
				<th data-options="field:'equmtIp',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.equmtIp}">设备IP</span></th>
				<th data-options="field:'orgId',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.orgId}">机构id</span></th>
				<th data-options="field:'fixCycle',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.fixCycle}">维护周期(月)</span></th>
				<th data-options="field:'equmtStatue',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.equmtStatue}">设备状态</span></th>
				<th data-options="field:'equpicPath',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.equpicPath}">设备照片</span></th>
				<th data-options="field:'equmtOverload',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.equmtOverload}">超载重量</span></th>
				<th data-options="field:'equmtDiva',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.equmtDiva}">分度值</span></th>
				<th data-options="field:'equmtDivb',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.equmtDivb}">跟踪</span></th>
				<th data-options="field:'equmtDivc',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.equmtDivc}">通信</span></th>
				<th data-options="field:'equmtDivd',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.equmtDivd}">传感器</span></th>
				<th data-options="field:'equmtDive',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.equmtDive}">波特率</span></th>
				<th data-options="field:'equmtLon',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.equmtLon}">经度</span></th>
				<th data-options="field:'equmtLat',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.equmtLat}">纬度</span></th>
				<th data-options="field:'takecareStdate',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.takecareStdate}">安装时间</span></th>
				<th data-options="field:'takecareCudate',resizable:true,halign:'center'" width="15%"><span th:text="#{equmtInfo.takecareCudate}">最新维护时间</span></th>
			</tr>
		</thead>
	</table> 
</div> 
<script type="text/javascript">
	//操作
	function onOptEqumtInfo(value,row,index){ 
		var s =  '<a class="Edit_Button" href="javascript:showDetail(\''+value+'\',\'展示《'+row.equmtName+'》详情信息\',\'[[${formID}]] \')">详细</a>'+
			'&nbsp;'+
			'<a class="Edit_Button" href="javascript:edit(\''+value+'\',\'编辑《'+row.equmtName+'》信息\',\'[[${formID}]] \')">编辑</a>'+
			'&nbsp;'+
			'<a class="Delete_Button" href="javascript:remove(\''+value+'\',\'[[${formID}]]\')" >删除</a>' ;
		return s;
	}
	
	//导入 
	function importExcelMode(formID){
		var file = $('#file'+formID).filebox('getValue');
		if(file==""){ 
			 $.messager.alert({ width: 350, title:'温馨提示', msg:'导入文件不能为空!', icon:'info'});
			return; 
		}
		 $('#imp'+formID).linkbutton('disable');
		$("#impForm"+formID).ajaxSubmit({
			type: "post",
			dataType: "json",
			url: '[[@{equmt/equmtInfo/importGenerateInfo }]]', 
			success:function(data){ 
				$('#imp'+formID).linkbutton('enable'); 
				console.log(data)
				if (data.code == 200) {
					dataReload(formID); 
					$.messager.alert({width: 280,title: '操作成功',msg: data.msg, icon:'info'});
				}else{
					$.messager.alert({ width: 280, title:'数据提交异常', msg:data.msg});
				}
			},error: function (data) {
				$('#imp'+formID).linkbutton('enable'); 
				$.messager.alert('消息提醒','上传失败，数据异常！');
			}
		});
	}
			
			
		
	

</script>



				<th class="text-center"> 设备名称</th>
				<th class="text-center"> 设备IP</th>
				<th class="text-center"> 机构id</th>
				<th class="text-center"> 维护周期(月)</th>
				<th class="text-center"> 设备状态</th>
				<th class="text-center"> 设备照片</th>
				<th class="text-center"> 超载重量</th>
				<th class="text-center"> 分度值</th>
				<th class="text-center"> 跟踪</th>
				<th class="text-center"> 通信</th>
				<th class="text-center"> 传感器</th>
				<th class="text-center"> 波特率</th>
				<th class="text-center"> 经度</th>
				<th class="text-center"> 纬度</th>
				<th class="text-center"> 安装时间</th>
				<th class="text-center"> 最新维护时间</th>
<tr th:each="equmtInfo : ${equmtInfoVOList}">
					    <td><input type="checkbox" name="interest" th:value="${equmtInfo.equmtInfoId}"/></td>
						<td><span th:text="${equmtInfoStat.count}"></span></td>				<td><span th:text="${equmtInfo.equmtName}"></span></td>
				<td><span th:text="${equmtInfo.equmtIp}"></span></td>
				<td><span th:text="${equmtInfo.orgId}"></span></td>
				<td><span th:text="${equmtInfo.fixCycle}"></span></td>
				<td><span th:text="${equmtInfo.equmtStatue}"></span></td>
				<td><span th:text="${equmtInfo.equpicPath}"></span></td>
				<td><span th:text="${equmtInfo.equmtOverload}"></span></td>
				<td><span th:text="${equmtInfo.equmtDiva}"></span></td>
				<td><span th:text="${equmtInfo.equmtDivb}"></span></td>
				<td><span th:text="${equmtInfo.equmtDivc}"></span></td>
				<td><span th:text="${equmtInfo.equmtDivd}"></span></td>
				<td><span th:text="${equmtInfo.equmtDive}"></span></td>
				<td><span th:text="${equmtInfo.equmtLon}"></span></td>
				<td><span th:text="${equmtInfo.equmtLat}"></span></td>
				<td><span th:text="${equmtInfo.takecareStdate}"></span></td>
				<td><span th:text="${equmtInfo.takecareCudate}"></span></td>
